package com.example.yiqinmanagersystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/*
 **@Author:youpeng
 **Created on 2022/9/14
 */
@Data
@TableName("user")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String sex;
    private Integer age;
    private String address;
    private String img;
    private String phone;
    private String card;
    private String salt;

    /*id作为外键使用*/
//    private Integer roleId;
    private Integer banJiId;
    private Integer xueYuanId;
    private Integer teacherId;

    /*
    * 非数据库列
    * */
    @TableField(exist = false)
    private String banjiName;
    @TableField(exist = false)
    private String xueYuanName;
    @TableField(exist = false)
    private String teacherName;
}
